 <!DOCTYPE html>
<html>
<head>
   <title>Try Bootstrap Online</title>
   <link href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
   <script src="https://cdn.static.runoob.com/libs/jquery/2.0.0/jquery.js"></script>
   <script src="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>
<body>

<ul id="myTab" class="nav nav-tabs">
  <!--  <li class="active"><a href="#home" data-toggle="tab">
     全部</a>
   </li> -->
   <li><a href="#commodity" data-toggle="tab">商品咨询</a></li>
   <li><a href="#payment" data-toggle="tab">支付</a></li>
   <li><a href="#distribution" data-toggle="tab">配送</a></li>
   <li><a href="#sale" data-toggle="tab">售后</a></li>
<!--    <li><a href="#sales" data-toggle="tab">常见问题</a></li> -->
  <!--  <li class="dropdown">
      <a href="#" id="myTabDrop1" class="dropdown-toggle" 
         data-toggle="dropdown">Java <b class="caret"></b>
      </a> -->
    <!--   <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop1">
         <li><a href="#jmeter" tabindex="-1" data-toggle="tab">
            jmeter</a>
         </li>
         <li><a href="#ejb" tabindex="-1" data-toggle="tab">
            ejb</a>
         </li>
      </ul> -->
   </li>
</ul>

<div id="myTabContent" class="tab-content">

   <div class="tab-pane fade" id="commodity">
	<table class="table" >
	<tr>
		<th>商品名称</th>
 		<th>咨询用户</th>
 		<th>咨询的内容</th>
 		<th>咨询的时间</th>
 		<th>是否回复</th>
 		<th>操作</th>
 	</tr>
 @foreach($list['0'] as $k )
 	<tr>
 	<td>{{ $k -> name }}</td>
 	<td>{{ $k -> userName }}</td>
 	<td>{{ $k -> coContent }}</td>
 	<td>{{  date('Y-m-d H:i:s',$k -> coTime) }}</td>
	<td>{{ $k -> coStatu == 0? "未回复":'已回复' }}</td>
	<td><a href="{{ url('admin/consultRe') }}/{{ $k->consultId }}">回复&详情</a>|<a href="{{ url('admin/consult') }}/{{ $k->consultId }}">删除</a></td>
 	</tr>
 	@endforeach
	</table>

   </div>
  
   <div class="tab-pane fade" id="payment">
     <table class="table">
	<tr>
		<th>商品名称</th>
 		<th>咨询用户</th>
 		<th>咨询的内容</th>
 		<th>咨询的时间</th>
 		<th>是否回复</th>
 		<th>操作</th>
 	</tr>
 @foreach($list['1'] as $k )
 	<tr>
 	<td>{{ $k -> name }}</td>
 	<td>{{ $k -> userName }}</td>
 	<td>{{ $k -> coContent }}</td>
 	<td>{{  date('Y-m-d H:i:s',$k -> coTime) }}</td>
	<td>{{ $k -> coStatu == 0? "未回复":'已回复' }}</td>
	<td><a href="{{ url('admin/consultRe') }}/{{ $k->consultId }}">回复&详情</a>|<a href="{{ url('admin/consult') }}/{{ $k->consultId }}">删除</a></td>
 	</tr>
 	@endforeach
	</table>
  
   </div>
   <div class="tab-pane fade" id="distribution">
       <table class="table">
	<tr>
		<th>商品名称</th>
 		<th>咨询用户</th>
 		<th>咨询的内容</th>
 		<th>咨询的时间</th>
 		<th>是否回复</th>
 		<th>操作</th>
 	</tr>
 @foreach($list['2'] as $k )
 	<tr>
 	<td>{{ $k -> name }}</td>
 	<td>{{ $k -> userName }}</td>
 	<td>{{ $k -> coContent }}</td>
 	<td>{{  date('Y-m-d H:i:s',$k -> coTime) }}</td>
	<td>{{ $k -> coStatu == 0? "未回复":'已回复' }}</td>
	<td><a href="{{ url('admin/consultRe') }}/{{ $k->consultId }}">回复&详情</a>|<a href="{{ url('admin/consult') }}/{{ $k->consultId }}">删除</a></td>
 	</tr>
 	@endforeach
	</table>
 
   </div>
   
    <div class="tab-pane fade" id="sale">
       <table class="table">
	<tr>
		<th>商品名称</th>
 		<th>咨询用户</th>
 		<th>咨询的内容</th>
 		<th>咨询的时间</th>
 		<th>是否回复</th>
 		<th>操作</th>
 	</tr>
 @foreach($list['3'] as $k )
 	<tr>
 	<td>{{ $k -> name }}</td>
 	<td>{{ $k -> userName }}</td>
 	<td>{{ $k -> coContent }}</td>
 	<td>{{  date('Y-m-d H:i:s',$k -> coTime) }}</td>
	<td>{{ $k -> coStatu == 0? "未回复":'已回复' }}</td>
	<td><a href="{{ url('admin/consultRe') }}/{{ $k->consultId }}">回复&详情</a>|<a href="{{ url('admin/consult') }}/{{ $k->consultId }}">删除</a></td>
 	</tr>
 	@endforeach
 
	</table>

    
   </div>

</div>

 

<script>
  
   $(function () {
   
      $('#myTab li:eq(3) a').tab('show');
   });
</script>

</body>
</html>

